﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RenAi.Medical.DAL;
using RenAi.Medical.Model;
namespace RenAi.Medical.BLL
{
    public class UsersBLL
    {
        UsersDAL dal = new UsersDAL();
        /// <summary>
        /// 登陆（判断用户明密码是否正确）
        /// </summary>
        /// <param name="u"></param>
        /// <returns></returns>
        public int Login(string name,string pwd)
        {
            return dal.Login(name,pwd);
        }
        /// <summary>
        /// 获取所有用户信息
        /// </summary>
        /// <param name="u"></param>
        /// <returns></returns>
        public List<Users> Users()
        {
            return dal.Users();
        }
    }
}
